import {
  fn,
  name,
  obj
} from './b.js' // 解构赋值
import {
  Obj
} from './c'
// import {
//   fn,
//   name,
//   obj
// } from './a.js' // 解构赋值

import test from './d'
test.a()
console.log(test.c)


console.log(Obj)

fn()
console.log(name)
console.log(obj)

const sum = (a, b) => {
  return a + b
}
const res = sum(10, 20)
console.log(res)


class Student {

  constructor(name) {
    this.name = name
  }

  getName() {
    console.log(this.name)
  }
}

const a = new Student('成')
a.getName()

console.log(100)

